package Demo2;

 class Derieve extends Base{
    public int a=3;
    public int b=  100;
    public int c =111;
    public void testDerived(){
        System.out.println("testDerived...");
    }
    public void test(){
        testA();
        super.testA();
    }
    public void test1(){
        System.out.println(this.a);
        System.out.println(super.a);
        System.out.println(b);
        System.out.println(c);
    }
    public void func(){
        System.out.println(this.a);
        System.out.println(this.b);
        System.out.println(this.c);
        Base base = new Base();
        System.out.println(base.b);
        System.out.println("这是父类的b"+super.b);
        System.out.println("知识父类的啊"+super.a);
    }

}
//class A extends Derieve{

//}

